// pages/weather/weather.js
var util = require("../../utils/util.js");
Page({

  data: {
    dqcs: '',
    wratherList: []
  },

  onLoad: function (options) {
    let that = this;
    util.getWeather(function(data){
      that.setData({
        dqcs: data.results[0].currentCity,
        wratherList: data.results[0].weather_data
      })
    });
  }
  
})